/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.Beans;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Bone
 */
@Entity
@Table(name = "fiscal_par_federal")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "FiscalParFederal.findAll", query = "SELECT f FROM FiscalParFederal f")})
public class FiscalParFederal implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(nullable = false)
    private Integer id;
    private Character crt;
    @Column(name = "TIPO_REGIME")
    private Character tipoRegime;
    private Character apuracao;
    @Column(name = "PRESTA_SERVICO_LP_16")
    private Character prestaServicoLp16;
    @Column(name = "MICROEMPREE_INDIVIDUAL")
    private Character microempreeIndividual;
    @Column(name = "FILIAL_POSSUI_FILIAIS")
    private Character filialPossuiFiliais;
    @Column(name = "RETENCAO_CRF")
    private Character retencaoCrf;
    @Column(name = "RETENCAO_IRRF")
    private Character retencaoIrrf;
    @Column(name = "RETENCAO_CRFOP")
    private Character retencaoCrfop;
    @Column(name = "RETENCAO_IRRFP")
    private Character retencaoIrrfp;
    @Column(name = "CALC_PIS_COFINS_EFD", length = 2)
    private String calcPisCofinsEfd;
    @Column(name = "CODIGO_ACESSO_SIMPLES", length = 50)
    private String codigoAcessoSimples;
    @Column(name = "SIMPLES_NACIONAL_CABECALHO")
    private Character simplesNacionalCabecalho;
    @Column(name = "ATIV_SIMPLES_COMERCIO")
    private Character ativSimplesComercio;
    @Column(name = "ATIV_SIMPLES_INDUSTRIA")
    private Character ativSimplesIndustria;
    @Column(name = "ATIV_SIMPLES_SERVICO_3")
    private Character ativSimplesServico3;
    @Column(name = "ATIV_SIMPLES_SERVICO_4")
    private Character ativSimplesServico4;
    @Column(name = "ATIV_SIMPLES_SERVICO_5")
    private Character ativSimplesServico5;
    @JoinColumn(name = "ID_FISCAL_PARAMETROS", referencedColumnName = "ID", nullable = false)
    @ManyToOne(optional = false)
    private FiscalParametros idFiscalParametros;

    public FiscalParFederal() {
    }

    public FiscalParFederal(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Character getCrt() {
        return crt;
    }

    public void setCrt(Character crt) {
        this.crt = crt;
    }

    public Character getTipoRegime() {
        return tipoRegime;
    }

    public void setTipoRegime(Character tipoRegime) {
        this.tipoRegime = tipoRegime;
    }

    public Character getApuracao() {
        return apuracao;
    }

    public void setApuracao(Character apuracao) {
        this.apuracao = apuracao;
    }

    public Character getPrestaServicoLp16() {
        return prestaServicoLp16;
    }

    public void setPrestaServicoLp16(Character prestaServicoLp16) {
        this.prestaServicoLp16 = prestaServicoLp16;
    }

    public Character getMicroempreeIndividual() {
        return microempreeIndividual;
    }

    public void setMicroempreeIndividual(Character microempreeIndividual) {
        this.microempreeIndividual = microempreeIndividual;
    }

    public Character getFilialPossuiFiliais() {
        return filialPossuiFiliais;
    }

    public void setFilialPossuiFiliais(Character filialPossuiFiliais) {
        this.filialPossuiFiliais = filialPossuiFiliais;
    }

    public Character getRetencaoCrf() {
        return retencaoCrf;
    }

    public void setRetencaoCrf(Character retencaoCrf) {
        this.retencaoCrf = retencaoCrf;
    }

    public Character getRetencaoIrrf() {
        return retencaoIrrf;
    }

    public void setRetencaoIrrf(Character retencaoIrrf) {
        this.retencaoIrrf = retencaoIrrf;
    }

    public Character getRetencaoCrfop() {
        return retencaoCrfop;
    }

    public void setRetencaoCrfop(Character retencaoCrfop) {
        this.retencaoCrfop = retencaoCrfop;
    }

    public Character getRetencaoIrrfp() {
        return retencaoIrrfp;
    }

    public void setRetencaoIrrfp(Character retencaoIrrfp) {
        this.retencaoIrrfp = retencaoIrrfp;
    }

    public String getCalcPisCofinsEfd() {
        return calcPisCofinsEfd;
    }

    public void setCalcPisCofinsEfd(String calcPisCofinsEfd) {
        this.calcPisCofinsEfd = calcPisCofinsEfd;
    }

    public String getCodigoAcessoSimples() {
        return codigoAcessoSimples;
    }

    public void setCodigoAcessoSimples(String codigoAcessoSimples) {
        this.codigoAcessoSimples = codigoAcessoSimples;
    }

    public Character getSimplesNacionalCabecalho() {
        return simplesNacionalCabecalho;
    }

    public void setSimplesNacionalCabecalho(Character simplesNacionalCabecalho) {
        this.simplesNacionalCabecalho = simplesNacionalCabecalho;
    }

    public Character getAtivSimplesComercio() {
        return ativSimplesComercio;
    }

    public void setAtivSimplesComercio(Character ativSimplesComercio) {
        this.ativSimplesComercio = ativSimplesComercio;
    }

    public Character getAtivSimplesIndustria() {
        return ativSimplesIndustria;
    }

    public void setAtivSimplesIndustria(Character ativSimplesIndustria) {
        this.ativSimplesIndustria = ativSimplesIndustria;
    }

    public Character getAtivSimplesServico3() {
        return ativSimplesServico3;
    }

    public void setAtivSimplesServico3(Character ativSimplesServico3) {
        this.ativSimplesServico3 = ativSimplesServico3;
    }

    public Character getAtivSimplesServico4() {
        return ativSimplesServico4;
    }

    public void setAtivSimplesServico4(Character ativSimplesServico4) {
        this.ativSimplesServico4 = ativSimplesServico4;
    }

    public Character getAtivSimplesServico5() {
        return ativSimplesServico5;
    }

    public void setAtivSimplesServico5(Character ativSimplesServico5) {
        this.ativSimplesServico5 = ativSimplesServico5;
    }

    public FiscalParametros getIdFiscalParametros() {
        return idFiscalParametros;
    }

    public void setIdFiscalParametros(FiscalParametros idFiscalParametros) {
        this.idFiscalParametros = idFiscalParametros;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FiscalParFederal)) {
            return false;
        }
        FiscalParFederal other = (FiscalParFederal) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bs.Beans.FiscalParFederal[ id=" + id + " ]";
    }
    
}
